import React, { useEffect } from 'react'
import axios from 'axios';

export default function ProxyCom() {

  //useEffect 
  useEffect(() => {
    let getData = async () => {
      //http://localhost:3002/goods
      let result = await axios.get('/dev/goods');
      console.log(result);
    }
    getData();

    //获取头条接口数据
    let getToutiao = async () => {
      let url = '/toutiao/hot-event/hot-board/?origin=toutiao_pc&_signature=_02B4Z6wo00f01y-X7vwAAIDCTJ0ulSqs4mMvs-pAAK7WpOQJ3Gr-Wn2KbmXeVhuMPtE60tfjOnUatspqlEBLbOinPLmHVKDp19iUn2LPJ645R-ZvaixDL6F7sR5zV.wgV7-JegI6nu7uNp4Af9';
      let result = await axios.get(url);

      console.log(result);
    }

    getToutiao();
  }, []);

  return (
    <div>06_ProxyCom</div>
  )
}
